package com.gopay.remote.cps.approval;

import com.gopay.common.constants.approval.ApprovalID;
import com.gopay.common.constants.approval.TargetValue;
import com.gopay.common.exception.ApprovalException;

/**
 * 审批任务远程服务接口
 * 
 * @TaskRemoteService.java
 * @author yaobo
 * @2013-1-7 下午02:11:07 www.gopay.com.cn Inc.All rights reserved.
 */
public interface TaskRemoteService {

    /**
     * 新增审批流程
     * 
     * @param approvalId
     *            审批流程编号
     * @param target
     *            任务目标类型(1 - 订单 2 - 用户 3 - 批量)
     * @param targetId
     *            任务目标记录ID
     * @param start
     *            发起人
     * @return
     * @throws ApprovalException
     */
    public int addTaskApproval(ApprovalID approvalId, TargetValue target, String targetId, String start)
            throws ApprovalException; 
}
